package com.three.crm.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class FileBean implements Parcelable {

    private int id;
    private String code;
    private String url;

    public FileBean() {
    }

    public FileBean(int id, String code, String url) {
        this.id = id;
        this.code = code;
        this.url = url;
    }

    protected FileBean(Parcel in) {
        id = in.readInt();
        code = in.readString();
        url = in.readString();
    }

    public static final Creator<FileBean> CREATOR = new Creator<FileBean>() {
        @Override
        public FileBean createFromParcel(Parcel in) {
            return new FileBean(in);
        }

        @Override
        public FileBean[] newArray(int size) {
            return new FileBean[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(code);
        dest.writeString(url);
    }
}
